<?php
namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;

class Collect extends Model
{
    use HasDateTimeFormatter;

    protected $table = 'collect';

    protected $primaryKey = 'id';

    protected $fillable = [
        'member_id', // 会员id
        'belong_type', // 关联类型
        'belong_id', // 关联id
    ];

    public function belong()
    {
        return $this->morphTo();
    }
}
